package com.qf.springbootdemo03;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

@SpringBootApplication
@MapperScan("com.qf.springbootdemo03.mapper")
//开启方法级别的权限控制
//securedEnabled = true 开启 @Secured注解生效
@EnableGlobalMethodSecurity(securedEnabled = true, prePostEnabled = true)
public class SpringbootDemo03Application {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootDemo03Application.class, args);
    }

}
